package com.yxx.sys.mapper;

import com.yxx.sys.domain.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yxx
 * @since 2020-08-13
 */
public interface PermissionMapper extends BaseMapper<Permission> {
  Integer loadMaxOrderNum();

  /***
    *@Description: 根据id删除（菜单和权限表）和（角色表）的中间表的数据
     * @param id
    * @return: void
    **/
  void deleteRolePermissionById(@Param("id") Serializable id);
}
